package com.dbmall.service;

import com.dbmall.common.ServerResponse;
import com.dbmall.vo.CartVo;

/**
 * @author karry
 * @email handsomekarry@qq.com
 * @date 2018/7/6 20:39
 */
public interface ICartService {

    ServerResponse<CartVo> add(Integer userId, Integer productId, Integer count);

    ServerResponse<CartVo> update(Integer userId,Integer productId,Integer count);

    ServerResponse<CartVo> deleteProduct(Integer userId,String productIds);

    ServerResponse<CartVo> list(Integer userId);

    ServerResponse<CartVo> selectOrUnSelect(Integer userId,Integer productId,Integer checked);

    ServerResponse<Integer> getCartProductCount(Integer userId);

}
